<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let age = 19;
    document.write("我今年" + age + "岁了</br>");
    // 模板字符串, 外面用反引号`` ,里面${变量名}
    document.write(`我今年 ${age} 岁了 </br>`)


    // testdemo
    let uname = prompt("请输入姓名:");
    let uage = prompt("请输入年龄:");
    document.write(`大家好,我是${uname},今年${uage}岁了`)
  </script>
</body>

</html>